Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 12, 2026 21:20
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active February 12, 2026 21:19 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@Tombarr
Tombarr / autobooter.py
Created January 21, 2026 20:30
Automatically boot into fastboot mode on the TCL Flip 2, for unlocking phones with KEKA firmware
# original by neutronscott: https://github.com/neutronscott/flip2/blob/main/autobooter.py
# 2026-01-21 tombarr rewrote to use pyserial for macOS
import serial
import serial.tools.list_ports
import time
import sys
# MTK Preloader constants
VID = 0x0E8D